<?php

namespace app\admin\validate\information;

use think\Validate;

class Comment extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'information_id' => 'require',
        'content' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'information_id.require' => '请填写动态ID',
        'content.require' => '请填写评论内容',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add' => ['content', 'information_id'],
        'edit' => ['id', 'content'],
    ];

}
